package com.yuzhi.system.mapper;



import com.yuzhi.common.core.mapper.BaseMapperPlus;
import com.yuzhi.system.domain.SysUserDept;
import com.yuzhi.system.domain.SysUserRole;

import java.util.List;

/**
 * 用户与部门关联表 数据层
 *
 * @author auto
 */
public interface SysUserDeptMapper extends BaseMapperPlus<SysUserDeptMapper, SysUserDept, SysUserDept> {

    /**
     * 根据部门id查询所有用户
     * @param deptId
     */
    List<String> selectUserIdsByDeptId(String deptId);

    /**
     * 根据用户id查询所有部门
     * @param userId
     */
    List<String> selectdeptIdsByUserId(String userId);

}
